package db8;

public class Shape {
     int area;
     int per;
     String color;
    public Shape(){

    }
    public  Shape(String color){
        this.color=color;
    }
    public Shape(int area,int per,String color){
        this.area=area;
        this.per=per;
        this.color=color;
    }
    public int getArea(){
        return area;
    }
//    public void setArea(int area){
//        this.area=area;
//    }
    public int getPer(){
        return per;
    }
//    public void setPer(int per){
//        this.per=per;
//    }
    public String getColor(){
        return color;
    }
//    public void setColor(String color){
//
//    }
    public void showAll(){
        System.out.println("面积："+area+" 周长："+per+" 颜色："+color);
    }
}
